<?php
/*
 * @Author: fk 1031041088@qq.com
 * @Date: 2024-12-11 21:27:48
 * @LastEditors: fk 1031041088@qq.com
 * @LastEditTime: 2024-12-11 21:34:49
 * @FilePath: \ypjh\index.php
 */
session_start();

// 引入OSS配置文件
require_once 'config/oss_config.php';

// 路由处理
$page = isset($_GET['page']) ? $_GET['page'] : 'preview';

// 根据页面类型加载不同的视图
switch($page) {
    case 'upload':
        include 'views/upload.php';
        break;
    case 'preview':
    default:
        include 'views/preview.php';
        break;
}
?>
